#闭包函数
#全局环境

#函数局部环境
def py02():
	boy = '何涛'
	girl = '我的爱人'
	yao = '斤斤'

	#内部定义一个函数
	def chedan():
		print('有人在瞎扯淡')

	def smoking():
		print(yao+'正在抽烟')

	return(boy,girl,chedan,smoking)



'''
这里都不能进行局部变量打印
print(boy)
print(girl)
print(yao)
'''

# 用一个变量来接收函数返回的结果
res = py02();
nan,nv,cd,chou = res
#或者
'''
	nan = res[0]
	nv = res[1]
	cd = res[2]
	chou = res[3]
'''
print(nan)
print(nv)
print(cd)
print(chou)







